home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Mac Power 1997 December
/
MACPOWER-1997-12.ISO.7z
/
MACPOWER-1997-12.ISO
/
AMUG
/
PROGRAMMING
/
Raven 1.2.sit
/
Raven 1.2
/
Source
/
Foundation
/
Common
/
ZNewAndDelete.h
< prev
next >
Wrap
Text File
|
1997-08-02
|
1KB
|
61 lines
/*
* File: ZNewAndDelete.h
* Summary: Default Raven global operator new.
* Written by: Jesse Jones
*
* Copyright ゥ 1997 Jesse Jones.
* For conditions of distribution and use, see copyright notice in ZTypes.h
*
* Change History (most recent first):
*
* <2> 8/01/97 JDJ Added gValidateHeapOnDelete.
* <1> 1/28/97 JDJ Created
*/
#pragma once
#include <New.h>
//-----------------------------------
// Forward References
//
class TMemoryHeap;
//-----------------------------------
// Globals
//
extern TMemoryHeap* gObjectHeap;
#if DEBUG
extern bool gValidateHeapOnNew;
extern bool gValidateHeapOnDelete;
extern bool gFreeDeletedBlocks;
#endif
// ===================================================================================
// New and Delete
// ===================================================================================
void* RavenOperatorNew(size_t size);
// Note that you can disable Raven's operator new by defining RAVEN_OPERATOR_NEW
// as 0.
void RavenOperatorDelete(void* obj);
// ===================================================================================
// class TDisableLeakChecking
// While one of these objects is alive newly allocated blocks are not leak checked.
// ===================================================================================
class TDisableLeakChecking {
public:
~TDisableLeakChecking();
TDisableLeakChecking();
};